package com.example.compreshensiveshop.service;

import com.example.compreshensiveshop.po.ItemPO;
import com.example.compreshensiveshop.vo.DailySalesVO;
import com.example.compreshensiveshop.vo.MonthlySalesVO;

import java.util.List;

/**
 * Item Service Interface
 */
public interface ItemService {

    void addItem(ItemPO itemPO);

    List<ItemPO> queryByOId( Long orderId);

    List<ItemPO> querySellerOrderFilter(Long sellerId, Integer status, String keyword, Integer itemStatus,int offset, int pageSize);

    void updateItemStatus(Long id, Integer status);

   List<ItemPO>  querySellerSalesMoney(Long sellerId, Integer monthNum, Integer yearNum);

    List<DailySalesVO> queryDailySales(Long sellerId, Integer year, Integer month);

    List<MonthlySalesVO> queryMonthLySales(Long sellerId, Integer year);

    int countSellerOrderFilter(Long sellerId, Integer status, String keyword, Integer itemStatus);
}